
module("NetWork.Action.CreateGroupAction ", package.seeall)

local NetCmdActionBase = require("NetWork.Action").NetCmdActionBase

CreateGroupAction = NetCmdActionBase:new()

function CreateGroupAction:Action(bytes)
    local CreateGroupSm = require("Protol.groupMessage_pb").CreateGroupSm()
    CreateGroupSm:ParseFromString(bytes)
    Debug.log(stringify(CreateGroupSm))
    if CreateGroupSm.code ~= 0 then
        local UIWinMgr = require("UI.UIWinMgr").UIWinMgr
        UIWinMgr:OpenErrorNotice(CreateGroupSm.code)
        return
    end
    local ClubModule = require("Module.ClubModule").ClubModule
    ClubModule.CreateGroupSm(CreateGroupSm)
end

require("NetWork.NetCmdSet").CmdSet[2001] = CreateGroupAction --注册处理对象
